home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / pas_all.zip / TI426.ASC < prev    next >
Text File  |  1991-09-11  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  TURBO PASCAL DATABASE TOOLBOX          NUMBER  :  426
  9.   VERSION  :  4.0
  10.        OS  :  MS-DOS, PC-DOS
  11.      DATE  :  AUGUST 29, 1988                          PAGE  :  1/2
  12.  
  13.     TITLE  :  DATABASE TOOLBOX SUGGESTIONS AND CORRECTIONS
  14.  
  15.  
  16.  
  17.  
  18.   This handout addresses some  problems which have been reported by
  19.   users of the Turbo Pascal DataBase ToolBox version 4.0
  20.  
  21.   Correction
  22.  
  23.   When accessing an Index File that allows duplicate  keys  and has
  24.   greater than 32K records, the  Index  Key  routines,  FindKey and
  25.   SearchKey will be  unsuccessful  in finding keys for records past
  26.   32K.    By  making  the  following changes to  TACCESS.PAS,  this
  27.   problem will be corrected.  Please make sure that any changes are
  28.   made to a backup copy of the Database Toolbox, not the original.
  29.  
  30.   1.    In  the TaCompKeys procedure change the old code to look as
  31.   follows:
  32.  
  33.   begin
  34.     if TaKeyStr(K1) = TaKeyStr(K2) then
  35.     begin
  36.       if not Dup or (DR1 = DR2) then
  37.         TaCompKeys := 0
  38.       else
  39.         if DR1 > DR2 then
  40.           TaCompKeys := 1
  41.         else
  42.           TaCompKeys := -1;
  43.     end
  44.     else
  45.       if TaKeyStr(K1) > TaKeyStr(K2) then
  46.         TaCompKeys := 1
  47.       else
  48.         TaCompKeys := -1;
  49.   end;
  50.  
  51.  
  52.   2.   Save  the    changes to TACCESS.PAS.  Call TaBuild  for each
  53.   .TYP file to  create a new  TACCESS.TPU file.  Rebuild  all Index
  54.   Files.
  55.  
  56.  
  57.   Recommended Suggestion
  58.  
  59.   Users have reported unusual errors  occurring  in  their DataBase
  60.   ToolBox programs.  Many of these errors can be solved  by running
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  TURBO PASCAL DATABASE TOOLBOX          NUMBER  :  426
  75.   VERSION  :  4.0
  76.        OS  :  MS-DOS, PC-DOS
  77.      DATE  :  AUGUST 29, 1988                          PAGE  :  2/2
  78.  
  79.     TITLE  :  DATABASE TOOLBOX SUGGESTIONS AND CORRECTIONS
  80.  
  81.  
  82.  
  83.  
  84.   TaBuild with the  /W+  option  to  display  the  worksheet.   The
  85.   worksheet will show that 1,000  records will be the expected size
  86.   of  the Data File.  It is necessary that this value be changed to
  87.   reflect the maximum number of records possible for the Data File.
  88.   The data  segment  overhead  for  specifying  100,000  records as
  89.   opposed to 1,000 records is approximately 24 bytes additional per
  90.   defined IndexFile.
  91.  
  92.   For existing Data Files, where  greater  than  1,000  records are
  93.   expected, it is recommended  that  you  build  a new TACCESS unit
  94.   using  the  worksheet  to set the maximum number of records. This
  95.   requires that all Index Files be rebuilt.
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.